//
//  RegisterResultInfo.m
//  HWZB
//
//  Created by 许成雄 on 2017/5/2.
//  Copyright © 2017年 wonders. All rights reserved.
//

#import "RegisterResultInfo.h"

@implementation RegisterResultInfo

//"id": "9326dfa6827a4fcd88505c33b84a1c64",
//"customerType": "1",
//"mobile": "1852150835",
//"password": "123456",
//"registerTime": null,

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"registerId" : @"id"
             };
}

+ (NSValueTransformer *)registerIdJSONTransformer {
    return [MTLValueTransformer transformerWithBlock:^id(id value) {
        if([value isKindOfClass:[NSNumber class]]) {
            return [value stringValue];
        } else {
            return (NSString *)value;
        }
    }];
}

+ (NSValueTransformer *)customerTypeIdJSONTransformer {
    return [MTLValueTransformer transformerWithBlock:^id(id value) {
        if([value isKindOfClass:[NSNumber class]]) {
            return [value stringValue];
        } else {
            return (NSString *)value;
        }
    }];
}

@end
